package playgrounduml.umlspecs.xmi.v241.schema;

//
//Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert 
//Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
//Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
//Generiert: 2014.04.05 um 09:22:16 PM CEST 
//

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;


/**
* <p>Java-Klasse für Difference complex type.
* 
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
* 
* <pre>
* &lt;complexType name="Difference">
*   &lt;complexContent>
*     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
*       &lt;choice maxOccurs="unbounded" minOccurs="0">
*         &lt;element name="target">
*           &lt;complexType>
*             &lt;complexContent>
*               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
*                 &lt;choice maxOccurs="unbounded" minOccurs="0">
*                   &lt;any processContents='skip'/>
*                 &lt;/choice>
*                 &lt;anyAttribute processContents='skip'/>
*               &lt;/restriction>
*             &lt;/complexContent>
*           &lt;/complexType>
*         &lt;/element>
*         &lt;element name="difference" type="{http://www.omg.org/spec/XMI/20110701}Difference"/>
*         &lt;element name="container" type="{http://www.omg.org/spec/XMI/20110701}Difference"/>
*         &lt;element ref="{http://www.omg.org/spec/XMI/20110701}Extension"/>
*       &lt;/choice>
*       &lt;attGroup ref="{http://www.omg.org/spec/XMI/20110701}ObjectAttribs"/>
*       &lt;attribute ref="{http://www.omg.org/spec/XMI/20110701}id"/>
*       &lt;attribute name="target" type="{http://www.w3.org/2001/XMLSchema}IDREFS" />
*       &lt;attribute name="container" type="{http://www.w3.org/2001/XMLSchema}IDREFS" />
*     &lt;/restriction>
*   &lt;/complexContent>
* &lt;/complexType>
* </pre>
* 
* 
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Difference", propOrder = {
 "targetOrDifferenceOrContainer"
})
@XmlSeeAlso({
 Add.class,
 Delete.class,
 Replace.class
})
public class Difference {

 @XmlElementRefs({
     @XmlElementRef(name = "Extension", namespace = "http://www.omg.org/spec/XMI/20110701", type = JAXBElement.class, required = false),
     @XmlElementRef(name = "difference", type = JAXBElement.class, required = false),
     @XmlElementRef(name = "container", type = JAXBElement.class, required = false),
     @XmlElementRef(name = "target", type = JAXBElement.class, required = false)
 })
 protected List<JAXBElement<?>> targetOrDifferenceOrContainer;
 @XmlAttribute(name = "id", namespace = "http://www.omg.org/spec/XMI/20110701")
 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
 @XmlID
 @XmlSchemaType(name = "ID")
 protected String id;
 @XmlAttribute(name = "target")
 @XmlIDREF
 @XmlSchemaType(name = "IDREFS")
 protected List<Object> target;
 @XmlAttribute(name = "container")
 @XmlIDREF
 @XmlSchemaType(name = "IDREFS")
 protected List<Object> container;
 @XmlAttribute(name = "type", namespace = "http://www.omg.org/spec/XMI/20110701")
 protected QName type;
 @XmlAttribute(name = "label", namespace = "http://www.omg.org/spec/XMI/20110701")
 protected String label;
 @XmlAttribute(name = "uuid", namespace = "http://www.omg.org/spec/XMI/20110701")
 protected String uuid;
 @XmlAttribute(name = "href")
 @XmlSchemaType(name = "anyURI")
 protected String href;
 @XmlAttribute(name = "idref", namespace = "http://www.omg.org/spec/XMI/20110701")
 @XmlIDREF
 @XmlSchemaType(name = "IDREF")
 protected Object idref;

 /**
  * Gets the value of the targetOrDifferenceOrContainer property.
  * 
  * <p>
  * This accessor method returns a reference to the live list,
  * not a snapshot. Therefore any modification you make to the
  * returned list will be present inside the JAXB object.
  * This is why there is not a <CODE>set</CODE> method for the targetOrDifferenceOrContainer property.
  * 
  * <p>
  * For example, to add a new item, do as follows:
  * <pre>
  *    getTargetOrDifferenceOrContainer().add(newItem);
  * </pre>
  * 
  * 
  * <p>
  * Objects of the following type(s) are allowed in the list
  * {@link JAXBElement }{@code <}{@link Difference }{@code >}
  * {@link JAXBElement }{@code <}{@link Extension }{@code >}
  * {@link JAXBElement }{@code <}{@link Difference.Target }{@code >}
  * {@link JAXBElement }{@code <}{@link Difference }{@code >}
  * 
  * 
  */
 public List<JAXBElement<?>> getTargetOrDifferenceOrContainer() {
     if (targetOrDifferenceOrContainer == null) {
         targetOrDifferenceOrContainer = new ArrayList<JAXBElement<?>>();
     }
     return this.targetOrDifferenceOrContainer;
 }

 /**
  * Ruft den Wert der id-Eigenschaft ab.
  * 
  * @return
  *     possible object is
  *     {@link String }
  *     
  */
 public String getId() {
     return id;
 }

 /**
  * Legt den Wert der id-Eigenschaft fest.
  * 
  * @param value
  *     allowed object is
  *     {@link String }
  *     
  */
 public void setId(String value) {
     this.id = value;
 }

 /**
  * Gets the value of the target property.
  * 
  * <p>
  * This accessor method returns a reference to the live list,
  * not a snapshot. Therefore any modification you make to the
  * returned list will be present inside the JAXB object.
  * This is why there is not a <CODE>set</CODE> method for the target property.
  * 
  * <p>
  * For example, to add a new item, do as follows:
  * <pre>
  *    getTarget().add(newItem);
  * </pre>
  * 
  * 
  * <p>
  * Objects of the following type(s) are allowed in the list
  * {@link Object }
  * 
  * 
  */
 public List<Object> getTarget() {
     if (target == null) {
         target = new ArrayList<Object>();
     }
     return this.target;
 }

 /**
  * Gets the value of the container property.
  * 
  * <p>
  * This accessor method returns a reference to the live list,
  * not a snapshot. Therefore any modification you make to the
  * returned list will be present inside the JAXB object.
  * This is why there is not a <CODE>set</CODE> method for the container property.
  * 
  * <p>
  * For example, to add a new item, do as follows:
  * <pre>
  *    getContainer().add(newItem);
  * </pre>
  * 
  * 
  * <p>
  * Objects of the following type(s) are allowed in the list
  * {@link Object }
  * 
  * 
  */
 public List<Object> getContainer() {
     if (container == null) {
         container = new ArrayList<Object>();
     }
     return this.container;
 }

 /**
  * Ruft den Wert der type-Eigenschaft ab.
  * 
  * @return
  *     possible object is
  *     {@link QName }
  *     
  */
 public QName getType() {
     return type;
 }

 /**
  * Legt den Wert der type-Eigenschaft fest.
  * 
  * @param value
  *     allowed object is
  *     {@link QName }
  *     
  */
 public void setType(QName value) {
     this.type = value;
 }

 /**
  * Ruft den Wert der label-Eigenschaft ab.
  * 
  * @return
  *     possible object is
  *     {@link String }
  *     
  */
 public String getLabel() {
     return label;
 }

 /**
  * Legt den Wert der label-Eigenschaft fest.
  * 
  * @param value
  *     allowed object is
  *     {@link String }
  *     
  */
 public void setLabel(String value) {
     this.label = value;
 }

 /**
  * Ruft den Wert der uuid-Eigenschaft ab.
  * 
  * @return
  *     possible object is
  *     {@link String }
  *     
  */
 public String getUuid() {
     return uuid;
 }

 /**
  * Legt den Wert der uuid-Eigenschaft fest.
  * 
  * @param value
  *     allowed object is
  *     {@link String }
  *     
  */
 public void setUuid(String value) {
     this.uuid = value;
 }

 /**
  * Ruft den Wert der href-Eigenschaft ab.
  * 
  * @return
  *     possible object is
  *     {@link String }
  *     
  */
 public String getHref() {
     return href;
 }

 /**
  * Legt den Wert der href-Eigenschaft fest.
  * 
  * @param value
  *     allowed object is
  *     {@link String }
  *     
  */
 public void setHref(String value) {
     this.href = value;
 }

 /**
  * Ruft den Wert der idref-Eigenschaft ab.
  * 
  * @return
  *     possible object is
  *     {@link Object }
  *     
  */
 public Object getIdref() {
     return idref;
 }

 /**
  * Legt den Wert der idref-Eigenschaft fest.
  * 
  * @param value
  *     allowed object is
  *     {@link Object }
  *     
  */
 public void setIdref(Object value) {
     this.idref = value;
 }


 /**
  * <p>Java-Klasse für anonymous complex type.
  * 
  * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
  * 
  * <pre>
  * &lt;complexType>
  *   &lt;complexContent>
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       &lt;choice maxOccurs="unbounded" minOccurs="0">
  *         &lt;any processContents='skip'/>
  *       &lt;/choice>
  *       &lt;anyAttribute processContents='skip'/>
  *     &lt;/restriction>
  *   &lt;/complexContent>
  * &lt;/complexType>
  * </pre>
  * 
  * 
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "", propOrder = {
     "any"
 })
 public static class Target {

     @XmlAnyElement
     protected List<Element> any;
     @XmlAnyAttribute
     private Map<QName, String> otherAttributes = new HashMap<QName, String>();

     /**
      * Gets the value of the any property.
      * 
      * <p>
      * This accessor method returns a reference to the live list,
      * not a snapshot. Therefore any modification you make to the
      * returned list will be present inside the JAXB object.
      * This is why there is not a <CODE>set</CODE> method for the any property.
      * 
      * <p>
      * For example, to add a new item, do as follows:
      * <pre>
      *    getAny().add(newItem);
      * </pre>
      * 
      * 
      * <p>
      * Objects of the following type(s) are allowed in the list
      * {@link Element }
      * 
      * 
      */
     public List<Element> getAny() {
         if (any == null) {
             any = new ArrayList<Element>();
         }
         return this.any;
     }

     /**
      * Gets a map that contains attributes that aren't bound to any typed property on this class.
      * 
      * <p>
      * the map is keyed by the name of the attribute and 
      * the value is the string value of the attribute.
      * 
      * the map returned by this method is live, and you can add new attribute
      * by updating the map directly. Because of this design, there's no setter.
      * 
      * 
      * @return
      *     always non-null
      */
     public Map<QName, String> getOtherAttributes() {
         return otherAttributes;
     }

 }

}